package com.yugao.fintech.antelope.mps.api.model.rqrs;

import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import com.yugao.fintech.antelope.mps.api.model.content.BaseMsgContent;
import com.yugao.fintech.antelope.mps.api.model.content.MsgContent;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * 消息推送参数

 */
@ToString
@Getter
@Setter
@Accessors(chain = true)
public class MsgPushParam {
    private Long historyId;

    /**
     * 消息内容json格式
     * @see BaseMsgContent
     */
    private MsgContent msgContent;

    /**
     * 渠道类型
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String channelType;
}
